import {httpGet, httpPost} from "@/common/http";

const prefix = "/friend";
const getListUri = prefix + "/minePage";
const addUri = prefix + "/add";

const getList = (pageNum, pageSize) => {
    return httpGet(getListUri, {
        pageNum: pageNum,
        pageSize: pageSize
    })
};

const add = (username) => {
    return httpPost(addUri, {
        username: username
    })
};
export default {
    getList, add
}